package com.scau.ums.service.imp.userInfo;

import com.scau.ums.mapper.StudentMapper;
import com.scau.ums.model.Student;
import com.scau.ums.service.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentInfoImp implements UserInfo {

    @Autowired
    private StudentMapper studentMapper;


    public Student getUser(String StudentId){
        return studentMapper.selectByPrimaryKey(StudentId);
    }

    @Override
    public List<Student> getAllUsers() {
        return studentMapper.selectByExample(null);
    }
}
